package cn.tedu.staticx;

public class StaticDemo3 {
    public static void main(String[] args) {
//        Father father = new Father();
        Son son = new Son();
    }
}
class Father{
    static int num;
    static{
        System.out.println("Father 静态代码块");
    }
    {
        System.out.println("Father 构造代码块");
    }
    public Father(){
        System.out.println("Father 构造方法");
    }
}
class Son extends Father{
    static{
        System.out.println("Son 静态代码块");
    }
    {
        System.out.println("Son 构造代码块");
    }
    public Son(){
        System.out.println("Son 构造方法");
    }

}
